<?php
echo "<select name=relation>";
if ($sel == 301) $selected = "selected"; else $selected = "";
echo "<option " . $selected . " value=301>自己(Self)";
if ($sel == 302) $selected = "selected"; else $selected = "";
echo "<option " . $selected . " value=302>配偶(Spouse)";
if ($sel == 303) $selected = "selected"; else $selected = "";
echo "<option " . $selected . " value=303>孩子(Children)";
if ($sel == 304) $selected = "selected"; else $selected = "";
echo "<option " . $selected . " value=304>親屬(Relative)";
if ($sel == 305) $selected = "selected"; else $selected = "";
echo "<option " . $selected . " value=305>朋友(Friend)";
echo "</select>";
?>